<extend name="Public:User/base"/>
<block name="content">
<!-- content start -->
<div class="container">
    <div class="row">
        <!-- btn-group start -->
        <div class="all-width my-cols-right info-back-color back-margin-padding col-sm-9 col-lg-9">
        	<div class="row">
        		<div class="small-search col-sm-12 col-lg-12">
    				<!-- row-search start -->
    			    <div class="row">
                        <div class="small-search-a col-sm-6 col-lg-6 text-center">
                            <a class="collect-btn" href="{:U('Home/Collect/showCollect?collectType=0')}">全部收藏</a>
                            <a class="collect-btn" href="{:U('Home/Collect/showCollect?collectType=1')}">拼购收藏</a>
                            <a class="collect-btn" href="{:U('Home/Collect/showCollect?collectType=2')}">购物收藏</a>
				        </div>
				        <div class="col-sm-2 col-lg-2"></div>
				        <div class="col-sm-4 col-lg-4" role="form">
				            <form action="__SELF__" method="POST" name="collectSearch" role="collectSearch">
				                <div class="input-group" style="padding: 10px 50px 0 0;">
				                    <label class="sr-only"></label><!--form表单中，label标签必不可少-->
				                    <input type="text" maxlength="255" autocomplete="off" class="form-control" placeholder="搜索收藏" name="collectSearch">
				                    <span class="input-group-btn"><input type="submit" value="搜索" class="btn my-btn-default-text my-btn-default-bgcolor btn-default"></span>
				                </div>
				            </form>
				        </div><!--搜索框表单-->
			   		</div>
			    	<!--row-search end-->
        		</div>
        	</div>
            <div class="row">
                <div class="btn-group-div-padding col-sm-offset-1 col-lg-offset-1 col-sm-12 col-lg-12">
                	<div class="col-sm-2 col-lg-2">
                		<p>商品状态</p>
                	</div>
                	<div class="goods-status btn-group col-sm-3 col-lg-3">
            		   <button disabled type="button" class="down-select btn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;全部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
            		   <button type="button" class="down-select btn dropdown-toggle" data-toggle="dropdown">
            		      <span class="caret"></span>
            		      <span class="sr-only">
                              <if condition="$Think.session.time eq 1">最近一个月
                                  <elseif condition="$Think.session.collectTime eq 3"/>最近三个月
                                  <elseif condition="$Think.session.collectTime eq 6"/>最近半年
                                  <elseif condition="$Think.session.collectTime eq 12"/>最近一年
                                  <else/>全部
                              </if>
                          </span>
            		   </button>
            		   <ul class="dropdown-menu" role="menu">
            		      <li><a href="{:U('Home/Collect/showCollect?collectTime=1')}">最近一个月</a></li>
            		      <li><a href="{:U('Home/Collect/showCollect?collectTime=3')}">最近三个月</a></li>
            		      <li><a href="{:U('Home/Collect/showCollect?collectTime=6')}">最近半年</a></li>
            		      <li><a href="{:U('Home/Collect/showCollect?collectTime=12')}">最近一年</a></li>
            		      <li class="divider"></li>
            		      <li><a href="{:U('Home/Collect/showCollect?collectTime=100')}">全部</a></li>
            		   </ul>
            		</div>
            		<div class="col-sm-offset-1 col-lg-offset-1 col-sm-3 col-lg-3">
                    	<button type="button" class="btn-text icon-check-empty" id="select"> 全选</button>
            			<button class="btn-text icon-trash" > 删除</button>
            		</div>
                </div>
            </div>
            <!-- 拼购收藏夹 start -->
            <div class="row">
            	<div class="col-sm-12 col-lg-12">
                    <foreach name="collectInfo" item="v">
            		<div class="collect-div-set col-sm-4 col-lg-4">
                        <div class="collect-info"><i class="icon-heart h3">&nbsp;&nbsp;1.1K</i></div>
                        <a href="{:U('Home/Collect/delCollect?collectId='.$v['collectid'])}"><img src="{$Think.const.IMG_URL}/shopping/1-3.png" class="collect-img"></a><br>
                        <div class="text-center">
                            <span style="color: RGB(244,166,36);">------<a href="#" style="font-weight: 700;font-size: 14px;">{$v['unitprice']}</a>------</span><br>
                            <a href="#" style="color: rgb(126,122,122); font-size: 14px;"><span>{$v[goodsname]}</span>&nbsp;·&nbsp;</a><br>
                        </div>
                        <if condition="($v.isbingo eq 1) AND ($v.luckynumber eq '') ">
                        <div>参与人数&nbsp;&nbsp;<span><a href="#">{$v['totalnumber']}</a></span>
                            <div class="btn button-set pull-right">点击抢购</div>
                        </div>
                            <elseif condition="$v.isbingo eq 1" />
                            <div>
                                <button class="button-fail" style="margin-right: 50%;">&nbsp;失&nbsp;效&nbsp;</button>
                            </div>
                        </if>
                        <div class="nav-justified">
                            <button class="btn-text  icon-check-empty pull-left  select"></button>
                            <button class="btn-text icon-trash pull-right" onclick="window.location.href ='{:U('Home/Collect/delCollect?collectId='.$v['collectid'])}'"></button>
                        </div>
            		</div>
                    </foreach>
            	</div>
            </div>
        </div>
    </div>
    <!-- btn-group end -->
</div>
<!-- content end -->

</block>